package demo.unisannio;

import java.util.ArrayList;

import android.R;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Handler;
import android.widget.TabHost;

public class S2SActivity extends TabActivity {
	
	public static Handler handler=new Handler();
//	public static ArrayList<Address> indirizzi;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Resources res=getResources();
//		setContentView(org.unisannio.R.layout.demomain);
		
		TabHost host=getTabHost();
		host.addTab(host.newTabSpec("home").setIndicator("",res.getDrawable(R.drawable.ic_menu_info_details)).setContent(new Intent(this, DemoActivity.class)));
		host.addTab(host.newTabSpec("broadcast").setIndicator("",res.getDrawable(R.drawable.ic_menu_share)).setContent(new Intent(this, BroadcastActivity.class)));
		host.addTab(host.newTabSpec("content").setIndicator("",res.getDrawable(R.drawable.ic_search_category_default)).setContent(new Intent(this, ContentActivity.class)));
		
	}
}